
import 'package:json_annotation/json_annotation.dart';

part 'sales_order.g.dart';

@JsonSerializable()
class SalesOrder {
  @JsonKey(defaultValue: "")
  String?  orderCode;
  int? status;
  @JsonKey(defaultValue: "")
  String?  custName;
  int? sex;
  @JsonKey(defaultValue: "")
  String?  phone;
  int? customerType;
  @JsonKey(defaultValue: "")
  String?  companyName;
  int? idType;
  @JsonKey(defaultValue: "")
  String?  idNo;
  @JsonKey(defaultValue: "")
  String?  vin;
  @JsonKey(defaultValue: "")
  String?  modelName;
  @JsonKey(defaultValue: "")
  String?  versionName;
  @JsonKey(defaultValue: "")
  String?  inColor;
  @JsonKey(defaultValue: "")
  String?  outColor;
  int? standardPrice;
  int? deductionPrice;
  int? vehiclePrice;
  int? depositAmount;
  int? unpaidAmount;
  @JsonKey(name: "payMethoh")
  int? payMethod;
  @JsonKey(defaultValue: "")
  String?  shopName;
  @JsonKey(defaultValue: "")
  String?  centerShopName;
  @JsonKey(defaultValue: "")
  String?  deliveryDate;
  @JsonKey(defaultValue: "")
  String?  remark;
  @JsonKey(defaultValue: "")
  String?  createDate;
  @JsonKey(defaultValue: "")
  String?  belongPhone;
  @JsonKey(defaultValue: "")
  String?  belongShopName;
  @JsonKey(defaultValue: "")
  String?  belongSalemanName;
  int? isJudge;
  @JsonKey(defaultValue: "")
  String?  judgeUserName;
  @JsonKey(defaultValue: "")
  String?  judgeDate;
  @JsonKey(defaultValue: "")
  String?  judgeRemake;

  SalesOrder({
    this.orderCode,
    this.status,
    this.custName,
    this.sex,
    this.phone,
    this.customerType,
    this.companyName,
    this.idType,
    this.idNo,
    this.vin,
    this.modelName,
    this.versionName,
    this.inColor,
    this.outColor,
    this.standardPrice,
    this.deductionPrice,
    this.vehiclePrice,
    this.depositAmount,
    this.unpaidAmount,
    this.payMethod,
    this.shopName,
    this.centerShopName,
    this.deliveryDate,
    this.remark,
    this.createDate,
    this.belongPhone,
    this.belongShopName,
    this.belongSalemanName,
    this.isJudge,
    this.judgeUserName,
    this.judgeDate,
    this.judgeRemake,
  });

  factory SalesOrder.fromJson(Map<String, dynamic> json) => _$SalesOrderFromJson(json);

  Map<String,dynamic> toJson() => _$SalesOrderToJson(this);
}